/*eslint-disable*/
import { createStore } from 'vuex';

export default createStore({
    state: {
        // 这里是你的应用程序的状态
        routeData: {},
        searchResult: [],
        isFirstLoaded: true,
        faceFolderPath: ""
    },
    mutations: {
        // 这里是用于修改状态的同步方法
        writeRouteData(state, data) {
            state.routeData = data
        },
        writeSearchResult(state, data) {
            state.searchResult = data
        },
        writeIsFirstLoaded(state, data) {
            state.isFirstLoaded = false
        },
        writeFaceFolderPath(state, data) {
            state.faceFolderPath = data
            console.log("@@"+state.faceFolderPath);
        }
    },
    actions: {
        // 这里是用于处理异步操作的方法
    },
    modules: {
        // 这里是用于拆分 Vuex store 的模块
    }
});
